package com.haiya.factory.method.pizza;

public class BjPizza extends PizzaStore {
    @Override
    public Pizza makePizza(String orderType) {
        Pizza pizza = null;

        if (orderType.equals("cheese")) {
            pizza = new BjCheesePizza();
        } else if (orderType.equals("greek")) {
            pizza = new BjGreekPizz();
        }
        return pizza;
    }
}
